<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateElOrderItemPointTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('el_order_item_point', function (Blueprint $table) {

            $table->increments('id');
            $table->tinyInteger('status')->unsigned();
            $table->integer('order_id')->unsigned();
            $table->integer('user_id')->unsigned();
            $table->string('type')->default('default');
            $table->string('action');
            $table->string('note');
            $table->integer('value');
            $table->integer('valid_time');
            $table->string('item_type');
            $table->integer('item_id');
            $table->timestamps();

        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('el_order_item_point');
    }
}
